<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查询页面</title>
</head>
<body>
<center>
    <table>
        <tr>
            <td>请输入手机号</td>
            <td><input type="text" name="iphone" id="tell"></td>
        </tr>
        <tr>
            <td><input type="button" value="查询"></td>
            <td><input type="reset"value="取消"></td>
        </tr>
    </table>
    <div>

    </div>
</center>
</body>
</html>
<script src="../jquery-3.3.1.js"></script>
<script>
    $(':button').click(function(){
        $('div').empty();
        var tell = $(':text[name=iphone]').val();
        $.ajax({
            url : "demo.php?tell="+tell,
            dataType : "Json",
            success : function(data){
                var span = '<span>归属地：'+data.style_citynm+'</span>';
                $('div').append(span);
            }
        })
    })
</script>